package my.sweep_tchap;
/**
 * @description Street Sweeping application for mobile IOs
 * @author Tyler Chapman
 * @version 0.1
 * 
 * Main class that starts up the UINavigationController. Not visible to the 
 * user but fired when application is started. The UINavigationController 
 * will store all the future pages in a stack and the user can move between 
 * them by selecting the buttons on the upper left and right corners of the screen.
 * 
 */

import org.xmlvm.iphone.UIApplication;
import org.xmlvm.iphone.UIApplicationDelegate;
import org.xmlvm.iphone.UINavigationController;
import org.xmlvm.iphone.UIScreen;
import org.xmlvm.iphone.UIWindow;

public class Main extends UIApplicationDelegate {
    
    @Override
    public void applicationDidFinishLaunching(UIApplication app) {
        UIWindow window = new UIWindow(UIScreen.mainScreen().getBounds());
        /*
         * Create the UINavigationController. The constructor is given the first
         * view that will be pushed onto the view stack (MapPage in this
         * case).
         */
        UINavigationController navigationController = new UINavigationController(new MapPage());
        window.setRootViewController(navigationController);
        window.makeKeyAndVisible();
    }
    
    public static void main(String[] args) {
        UIApplication.main(args, null, Main.class);
    }
}
